package com.whmskj.xjlhsc.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.fo.ElectricAnalysisFo;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.service.ElectricAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SaIgnore
@RestController
@RequestMapping("/api")
public class ElectricAnalysisController {

    @Autowired
    private ElectricAnalysisService service;

    //电清分析,电清实时数据
    @GetMapping("/dq/sssj")
    public Result dqsj(ElectricAnalysisFo fo) {
        return Result.success(service.dqsj(fo));
    }

    //电清分析,电清日趋势对比
    @GetMapping("/dq/dqqsdb")
    public Result dqqsdb(ElectricAnalysisFo fo) {
        return Result.success(service.dqqsdb(fo));
    }

    //电清分析,电清日趋势对比列表
    @GetMapping("/dq/dqqsdbList")
    public Result dqqsdbList(ElectricAnalysisFo fo) {
        return Result.success(service.dqqsdbList(fo));
    }

    //电清分析,电清机台对比
    @GetMapping("/dq/dqjtdb")
    public Result dqjtdb(ElectricAnalysisFo fo) {
        return Result.success(service.dqjtdb(fo));
    }

    //电清分析,电清机台对比列表
    @GetMapping("/dq/dqjtdbList")
    public Result dqjtdbList(ElectricAnalysisFo fo) {
        return Result.success(service.dqjtdbList(fo));
    }


    //电清分析,电清品种对比
    @GetMapping("/dq/dqpzdb")
    public Result dqpzdb(ElectricAnalysisFo kanPanFo) {
        return Result.success(service.dqpzdb(kanPanFo));
    }

    //电清分析,电清机台趋势对比列表
    @GetMapping("/dq/dqpzdbList")
    public Result dqpzdbList(ElectricAnalysisFo kanPanFo) {
        return Result.success(service.dqpzdbList(kanPanFo));
    }
}
